package com.suzhe.ymall.product.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 后台商品类目表
 * </p>
 *
 * @author suzhe
 * @since 2019-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Category对象", description = "后台商品类目表")
public class CategoryVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类目id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "类目名称")
    private String name1;

    @ApiModelProperty(value = "父类目id,顶级类目为0")
    private Long parentId;

    @NotEmpty(message = "leaf 不能为空")
    @ApiModelProperty(value = "是否叶子节点 1：是0：不是")
    private Boolean leaf;

    @ApiModelProperty(value = "层级")
    private Integer level;

    @ApiModelProperty(value = "排序序列")
    private Integer orderNum;

    @ApiModelProperty(value = "0已删除，1有效")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建者")
    private Long creater;

    @ApiModelProperty(value = "更新者")
    private Long updater;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
